﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Pages/MasterPage.master" AutoEventWireup="true" CodeFile="ImageList.aspx.cs" Inherits="Admin_Pages_ImageList" Title="Untitled Page" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v8.2, Version=8.2.4.0, Culture=neutral, PublicKeyToken=49d90c14d24271b5"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title>Management System</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="wraptitle">
    <h1>Image List</h1>
</div>
<div class="wrapcontent">
    <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server">
        <Columns>
            <dxwgv:GridViewDataTextColumn Caption="Image Name" FieldName="I_Name"/>
            <dxwgv:GridViewDataColumn Caption="Image">
                <DataItemTemplate>

                    <img alt='delete' src='../../<%# Eval("I_URL") %>' width='40px' height='40px'/>
                </DataItemTemplate>
            </dxwgv:GridViewDataColumn>
            <dxwgv:GridViewDataTextColumn Caption="Customer" FieldName="Username"/>
            <dxwgv:GridViewDataCheckColumn Caption="Show Image" FieldName="I_StatusDelete"/>
            <dxwgv:GridViewDataColumn Caption="Function">
                <DataItemTemplate>
                    <img alt='delete' src='../Images/delete.png' width='20px' height='20px'><a href='#' onclick="if(confirm('Are you sure?')){window.location='../Pages/ImageDelete.aspx?imageid=<%# Eval("I_ID") %>';}">Delete</a>
                </DataItemTemplate>
            </dxwgv:GridViewDataColumn>
        </Columns>
    </dxwgv:ASPxGridView>
</div>
</asp:Content>

